package org.example.design.designmode.builder.simplebuilder;

/**
 * @author songyafei
 */
public class CourseBulider {
    private  static Course course =new Course();

    public  Course addName(String name){
        course.setName(name);
        System.out.println(name);
        return course;
    }

    public  Course addNates(String nates){
        course.setNates(nates);
        System.out.println(nates);
        return course;
    }

    public  Course addVideo(String video){
        course.setVideo(video);
        System.out.println(video);
        return course;
    }

    public  Course addReplay(String replay){
        course.setPrice(replay);
        System.out.println(replay);
        return course;
    }

    public  Course addPrice(String price){
        course.setPrice(price);
        System.out.println(price);
        return course;
    }

    public  Course getToString(){
        return course;
    }

}
